// import util module
const util = require("util");
// import fs
const fs = require("fs");

let mineReadFile = util.promisify(fs.readFile)

mineReadFile("./1-promise基本使用/resource/content.txt").then(value => {
    console.log(value.toString());
}, reason => {
    console.log(reason);
});